#define _CRT_SECURE_NO_WARNINGS 1
#include <stdio.h>

//void my_strcpy(char* dest, char* src)
//{
//	while (*src != '\0')
//	{
//		*dest = *src;
//		dest++;
//		src++;
//	}
//	*dest = *src;
//}
//int main()
//{
//	char arr1[] = "hello bit";
//	char arr2[20] = "**********";
//	my_strcpy(arr2, arr1);
//	printf("%s\n", arr2);
//	return 0;
//}
char* my_strcpy(char* dest, char* src)
{
	char* ret = dest;
	while (*dest++ = *src++)
	{
		;
	}
	return ret;
}
int main()
{
	char arr1[] = "hello bit";
	char arr2[20] = "************";
	printf("%s\n", my_strcpy(arr2, arr1));
	return 0;
}
